
#ifndef  __QUEUE_PACKET_H__
#define  __QUEUE_PACKET_H__

#include "debug.h"
#include "include_other.h"
#include "include_com.h"


#define  MAX_QUEUE_SIZE_4K           (1*1024*1024)


typedef struct _queue_packet_t {

    void*        video_data[MAX_QUEUE_SIZE_4K];
	unsigned int video_size[MAX_QUEUE_SIZE_4K];
	int64_t      video_pts[MAX_QUEUE_SIZE_4K];
	int64_t      video_dts[MAX_QUEUE_SIZE_4K];
	
    unsigned int video_rindex;
    unsigned int video_windex;
	
    void*        audio_data[MAX_QUEUE_SIZE_4K];
	unsigned int audio_size[MAX_QUEUE_SIZE_4K];
	int64_t      audio_pts [MAX_QUEUE_SIZE_4K];

	
    unsigned int audio_rindex;
    unsigned int audio_windex;

} queue_packet_t;


#endif

